/*
 * Copyright 2012 the purple river software Co., Ltd.
 * 
 * http://www.purple-river.com
 */
package com.jqd.framework.core.hessian.web.controller;

import com.jqd.framework.core.exception.BusinessServiceException;
import com.jqd.framework.core.hessian.model.ServiceRequest;
import com.jqd.framework.core.hessian.model.ServiceResponse;

/**
 * 
 * 完成从controller到action的调用，该调用可能发生在同一个应用系统中，也可能通过一些远程通信协议(如 hessian)实现远程调用
 * 
 * @author liaozhicheng@purple-river.com
 * @date 2012-3-21
 * @since 1.0
 */
public interface ApplicationControllerHandler {
	
	/**
	 * 调用action，执行业务操作
	 * 
	 * @param serviceRequest
	 *            请求对象，包含请求参数
	 * @return 封装返回的结果集
	 * @throws BusinessServiceException
	 */
	ServiceResponse handleRequest(ServiceRequest serviceRequest) throws BusinessServiceException;
	
}
